package com.taobao.api.request;

import com.taobao.api.internal.mapping.ApiField;
import com.taobao.api.TaobaoObject;
import java.util.Map;

import com.taobao.api.ApiRuleException;
import com.taobao.api.BaseTaobaoRequest;
import com.taobao.api.internal.util.TaobaoHashMap;
import com.taobao.api.internal.util.json.JSONWriter;
import com.taobao.api.response.TmallNrFulfillLogisticsConsignResponse;

/**
 * TOP API: tmall.nr.fulfill.logistics.consign request
 * 
 * @author top auto create
 * @since 1.0, 2019.05.09
 */
public class TmallNrFulfillLogisticsConsignRequest extends BaseTaobaoRequest<TmallNrFulfillLogisticsConsignResponse> {
	
	

	/** 
	* 入参对象
	 */
	private String param0;

	public void setParam0(String param0) {
		this.param0 = param0;
	}

	public void setParam0(NrStoreGoodsReadyReqDto param0) {
		this.param0 = new JSONWriter(false,true).write(param0);
	}

	public String getParam0() {
		return this.param0;
	}

	public String getApiMethodName() {
		return "tmall.nr.fulfill.logistics.consign";
	}

	public Map<String, String> getTextParams() {		
		TaobaoHashMap txtParams = new TaobaoHashMap();
		txtParams.put("param0", this.param0);
		if(this.udfParams != null) {
			txtParams.putAll(this.udfParams);
		}
		return txtParams;
	}

	public Class<TmallNrFulfillLogisticsConsignResponse> getResponseClass() {
		return TmallNrFulfillLogisticsConsignResponse.class;
	}

	public void check() throws ApiRuleException {
	}
	
	/**
 * 入参对象
 *
 * @author top auto create
 * @since 1.0, null
 */
public static class NrStoreGoodsReadyReqDto extends TaobaoObject {

	private static final long serialVersionUID = 5422894715333147846L;

	/**
		 * 业务标识，dss标识定时送业务；jsd表示极速达业务
		 */
		@ApiField("biz_identity")
		private String bizIdentity;
		/**
		 * 发货公司编码
		 */
		@ApiField("company_code")
		private String companyCode;
		/**
		 * 发货公司
		 */
		@ApiField("company_name")
		private String companyName;
		/**
		 * 发货编码
		 */
		@ApiField("company_order_no")
		private String companyOrderNo;
		/**
		 * 交易主订单号
		 */
		@ApiField("main_order_id")
		private Long mainOrderId;
		/**
		 * 配送人员的姓名
		 */
		@ApiField("performer_name")
		private String performerName;
		/**
		 * 配送人员的电话
		 */
		@ApiField("performer_phone")
		private String performerPhone;
	

	public String getBizIdentity() {
			return this.bizIdentity;
		}
		public void setBizIdentity(String bizIdentity) {
			this.bizIdentity = bizIdentity;
		}
		public String getCompanyCode() {
			return this.companyCode;
		}
		public void setCompanyCode(String companyCode) {
			this.companyCode = companyCode;
		}
		public String getCompanyName() {
			return this.companyName;
		}
		public void setCompanyName(String companyName) {
			this.companyName = companyName;
		}
		public String getCompanyOrderNo() {
			return this.companyOrderNo;
		}
		public void setCompanyOrderNo(String companyOrderNo) {
			this.companyOrderNo = companyOrderNo;
		}
		public Long getMainOrderId() {
			return this.mainOrderId;
		}
		public void setMainOrderId(Long mainOrderId) {
			this.mainOrderId = mainOrderId;
		}
		public String getPerformerName() {
			return this.performerName;
		}
		public void setPerformerName(String performerName) {
			this.performerName = performerName;
		}
		public String getPerformerPhone() {
			return this.performerPhone;
		}
		public void setPerformerPhone(String performerPhone) {
			this.performerPhone = performerPhone;
		}

}


}